package com.niit.schoolhub.system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 博客-评论表
 * </p>
 *
 * @author kaguya
 * @since 2021-11-27
 */
@TableName("yesapi_bjy_comment")
@ApiModel(value = "YesapiBjyComment对象", description = "博客-评论表")
public class YesapiBjyComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("主键id")
    private Integer cmtid;

    @ApiModelProperty("评论用户id 关联oauth_user表的id")
    private Integer ouid;

    @ApiModelProperty("1：文章评论")
    private Boolean type;

    @ApiModelProperty("父级id")
    private Integer pid;

    @ApiModelProperty("文章id")
    private Integer aid;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("评论日期")
    private Integer date;

    @ApiModelProperty("1:已审核 0：未审核")
    private Boolean status;

    @ApiModelProperty("是否删除")
    private Boolean isDelete;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getCmtid() {
        return cmtid;
    }

    public void setCmtid(Integer cmtid) {
        this.cmtid = cmtid;
    }

    public Integer getOuid() {
        return ouid;
    }

    public void setOuid(Integer ouid) {
        this.ouid = ouid;
    }

    public Boolean getType() {
        return type;
    }

    public void setType(Boolean type) {
        this.type = type;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getDate() {
        return date;
    }

    public void setDate(Integer date) {
        this.date = date;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "YesapiBjyComment{" +
        "id=" + id +
        ", cmtid=" + cmtid +
        ", ouid=" + ouid +
        ", type=" + type +
        ", pid=" + pid +
        ", aid=" + aid +
        ", content=" + content +
        ", date=" + date +
        ", status=" + status +
        ", isDelete=" + isDelete +
        "}";
    }
}
